package com.thunder.ktv.scoreengine2test;

import java.io.File;
import java.io.Serializable;

/**
 * 歌曲实体类
 */
public class Song implements Serializable {
    private int id;                 // 歌曲ID
    private String title;           // 歌曲标题
    private String artist;          // 艺术家
    private String videoPath;       // 视频文件路径
    private String baseFilePath;    // 打分基准文件路径
    private String lyricsFilePath;  // 歌词文件路径
//    private String originalWavPath; // 原唱WAV文件路径
//    private String testWavPath1;    // 测试WAV文件1路径
//    private String testWavPath2;    // 测试WAV文件2路径

    public Song(int id, String title, String artist) {
        this.id = id;
        this.title = title;
        this.artist = artist;
        
        // 设置默认文件路径
        this.videoPath = "/sdcard/ts/" + id + ".ts";
        this.baseFilePath = "/sdcard/basefile/" + id + ".base";
        this.lyricsFilePath = "/sdcard/lyrics/" + id + ".txt";
//        this.lyricsFilePath = "assets/" + id + "/" + id + ".txt";
//        this.originalWavPath = "assets/" + id + "/" + id + "_1_vocals.wav";
//        this.testWavPath1 = "assets/" + id + "/" + id + "_test1.wav";
//        this.testWavPath2 = "assets/" + id + "/" + id + "_test2.wav";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public String getLyricsFilePath() {
        return lyricsFilePath;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public String getBaseFilePath() {
        return baseFilePath;
    }

    public void setBaseFilePath(String baseFilePath) {
        this.baseFilePath = baseFilePath;
    }

    public boolean isValid() {
        if(!new File(videoPath).exists()){
            return false;
        }
        return new File(baseFilePath).exists();
    }
//
//    public String getLyricsFilePath() {
//        return lyricsFilePath;
//    }
//
//    public void setLyricsFilePath(String lyricsFilePath) {
//        this.lyricsFilePath = lyricsFilePath;
//    }
//
//    public String getOriginalWavPath() {
//        return originalWavPath;
//    }
//
//    public void setOriginalWavPath(String originalWavPath) {
//        this.originalWavPath = originalWavPath;
//    }
//
//    public String getTestWavPath1() {
//        return testWavPath1;
//    }
//
//    public void setTestWavPath1(String testWavPath1) {
//        this.testWavPath1 = testWavPath1;
//    }
//
//    public String getTestWavPath2() {
//        return testWavPath2;
//    }
//
//    public void setTestWavPath2(String testWavPath2) {
//        this.testWavPath2 = testWavPath2;
//    }
} 